package com.zy.business.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zy.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @Description 日报实体类
 * @Author  zhangxiaojia
 * @Date 2020-06-19
 */

@Data
@ApiModel
@TableName ("tb_daily_report")
public class TbDailyReport  extends BaseEntity {

	/**
	 * 主键
	 */
   	 @TableId(value="id")
	private Long id;

	/**
	 * 项目id
	 */
   	 @TableField("project_id" )
	 @ApiModelProperty(value ="项目id",required = true)
	private Long projectId;

	/**
	 * 项目名称
	 */
	@TableField(exist = false)
	 @ApiModelProperty(hidden = true)
   	 private String projectName;

	/**
	 * 工时
	 */
   	 @TableField("work_hours" )
	 @ApiModelProperty(value ="工时",required = true)
	private Double workHours;

	/**
	 * 日报内容
	 */
   	 @TableField("content" )
	 @ApiModelProperty(value ="日报内容",required = true)
	private String content;

	/**
	 * 日报日期
	 */
	@TableField("report_id" )
	private Long reportId;

	/**
	 * 删除标志
	 */
	@TableField(value = "del_flag")
	@TableLogic
	private String delFlag;

	@TableField(exist = false)
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	private Date reportDate;

}
